package com.jdyxk.homemallbusiness.action;

import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 李昊哲
 * @date
 */
@Path(value = "/admin")
@Produces(value = MediaType.APPLICATION_JSON)
public class AdminAction {
    @GET
    @Path(value = "/test/{slogan}")
    @Consumes(value = MediaType.APPLICATION_FORM_URLENCODED)
    public Map<String,String> test(@PathParam("slogan") String slogan) {
        Map<String,String> map = new HashMap<String,String>();
        map.put("slogan",slogan);
        return map;
    }
}
